package com.sufun.sfhx;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends Activity implements View.OnClickListener {

	Button btn_login, btn_exit, btn_send_msg, btn_send_voice,
			btn_send_location;
	View v;
	EditText txt_user_name, txt_pass_word, txt_receiver, txt_content;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		initView();
	}

	void initView() {
		btn_login = (Button) findViewById(R.id.btn_login);
		btn_login.setOnClickListener(this);
		btn_exit = (Button) findViewById(R.id.btn_exit);
		btn_exit.setOnClickListener(this);
		btn_send_msg = (Button) findViewById(R.id.btn_send_msg);
		btn_send_msg.setOnClickListener(this);
		btn_send_voice = (Button) findViewById(R.id.btn_send_voice);
		btn_send_voice.setOnClickListener(this);
		btn_send_location = (Button) findViewById(R.id.btn_send_location);
		btn_send_location.setOnClickListener(this);

		
		txt_user_name = (EditText) findViewById(R.id.txt_user_name);
		txt_pass_word = (EditText) findViewById(R.id.txt_pass_word);
		txt_receiver = (EditText) findViewById(R.id.txt_receiver);
		txt_content = (EditText) findViewById(R.id.txt_content);

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.btn_exit:

			break;
		case R.id.btn_login:

			break;
		case R.id.btn_send_msg:

			break;
		case R.id.btn_send_voice:

			break;
		case R.id.btn_send_location:

			break;

		}
	}

}
